#!/usr/bin/python
"""
 * rfcomm.py - basic python interface to liblwbt.so for making rfcomm connection 
 * (C) 2009 by Michael Kramer <kramtek@gmail.com>
 *
"""

import sys
import time

from liblwbtAPI import *


selectedDeviceAddr = "00:0F:59:10:06:20"
selectedDeviceAddr = "00:A0:96:0E:A3:B4"
print "\nAttempting to make rfcomm\n connection to %s..." % selectedDeviceAddr 
connectResult = rfcomm_connect(selectedDeviceAddr, pin_code="0000")

if ((connectResult == 6) | (connectResult == 7)) :
    print "connection made, processing can continue..."


